package com.twu.biblioteca.ui;

import com.twu.biblioteca.data.BookDAO;

/**
 * Created by florian on 26/12/13.
 */
public class ScreenControllerFactory {

    private final BibliotecaUI ui;
    private final BookDAO bookDAO;

    public ScreenControllerFactory(BibliotecaUI ui,BookDAO bookDAO) {
        this.ui = ui;
        this.bookDAO = bookDAO; 
    }

    public ScreenController createMainScreenController() {
        return new MainScreenController(this, ui,bookDAO);
    }

    public ScreenController createCheckoutScreenController() {
        return new CheckoutController(this, ui,bookDAO);
    }

    public ScreenController createReturnBooksController() {
        return new ReturnController(this,ui,bookDAO);
    }
}
